< previous page page_993 next page >

Page 993
    MsgBox "You have created a Design Master out of EMPLOYEE.MDB!"

    dbMaster.MakeReplica "c:\tysdbvb5\source\data\copychi.mdb", "Replica of " &
"dbMaster"

    dbMaster.Close

    MsgBox "You have created a copy of EMPLOYEE.MDB"

End Sub
Use the following code from the Click event of a command button (cmdSynch) to synchronize the Chicago and the Cincinnati databases:
Private Sub cmdSynch_Click()
    Dim dbMaster As Database

    'Open the database
    Set dbMaster = OpenDatabase("c:\tysdbvb5\source\data\employee.mdb")

    dbMaster.Synchronize "c:\tysdbvb5\source\data\copychi.mdb"

    MsgBox "The synchronization is complete."

End Sub
Day 21
Answers to Day 21 Quiz
1. The disadvantages and limitations of using the Microsoft Access SYSTEM file to secure a database include:
e7ae6bd512ad4c3583017fcda52f57ae.gif
· You must own Microsoft Access to create a SYSTEM security file. You can't use a Visual Basic 5 utility to create a SYSTEM file.
e7ae6bd512ad4c3583017fcda52f57ae.gif
· It is possible to have multiple SYSTEM files, which could lead to problems if the wrong file is used.
e7ae6bd512ad4c3583017fcda52f57ae.gif
·SYSTEM file security can be removed by simply deleting the SYSTEM file itself.
e7ae6bd512ad4c3583017fcda52f57ae.gif
· Some applications do not recognize the SYSTEM file. It is possible for these applications to skirt the security implemented within the SYSTEM file.
2. The disadvantages of using data encryption to secure a database include:
e7ae6bd512ad4c3583017fcda52f57ae.gif
· Encryption affects an entire database and cannot be applied only to critical tables.
e7ae6bd512ad4c3583017fcda52f57ae.gif
· Encrypted databases can't be read by other programs. This makes distribution of data more difficult.
e7ae6bd512ad4c3583017fcda52f57ae.gif
· Encrypted databases cannot be replicated using the Microsoft Replication Manager tools.

 
< previous page page_993 next page >

If you like this book, buy it!